package com.rc.saas.tenant.common.base;

import com.google.code.kaptcha.Constants;

/**
 * Created by sven on 2018-02-22 11:58
 */
public interface HttpConstant {
    //String PLATFORM = "platform";
    //String IOS = "IOS";
    //String ANDROID = "ANDROID";

    int STATUS_SUCCESS = 200;
    int STATUS_FAIL = 500;
    int STATUS_FAIL_LOGIN = 403;

    //int STATUS_SUCCESS = 200;
    //int STATUS_FAIL = 1;

    //String SESSION_MOBILE = "sessionMemberMobile";
    //String SESSION_MEMBER_ID = "sessionMemberId";
    //String SESSION_TOKEN = "sessionToken";
    //String SESSION_LOGININFO = "sessionLoginInfo";

    //充电服务器域名,DOMAIN1,DOMAIN2
    String STD_DOMAIN = "STD_DOMAIN";
    String ZC_DOMAIN = "ZC_DOMAIN";

    //token有效期（小时）:7天
    //int DEFAULT_REDIS_EXPIRES_HOUR = 168;

    //存放Authorization的header字段
    String AUTHORIZATION = "authorization";

    String EXCEPTION_CODE_500 = "500";
    String EXCEPTION_CODE_600 = "600"; // session过期

    String SOCKETIO_P2P_EVENT = "P2P_EVENT"; //点对点事件
    String SOCKETIO_BROADCAST_EVENT = "BROADCAST_EVENT"; //广播事件

    String KAPTCHA_SESSION_KEY = "TENANT_" + Constants.KAPTCHA_SESSION_KEY;

    String MOBILE_REGEX = "^1[3-9]\\d{9}$"; //手机正则表达式

}
